#include <iostream>
#include <cmath>

double power(double a, int n){
    double result = 1;
    
    for (int i = 0; i < n; i++){
        result *= a;
    }
    
    return result;
}

int main() {
    double a;
    int n;

    std::cout << "Enter the base a and power n: ";
    std::cin >> a >> n;
   
    std::cout << power(a, n) << std::endl;

    return 0;
}